package command;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/11 14:13
 * @Description: 出售货物命令类
 */
public class SellStock implements Order {
    private Stock stock;

    public SellStock(Stock stock) {
        this.stock = stock;
    }

    /**
     * 命令操作方法
     */
    @Override
    public void execute() {
        stock.sell();
    }
}
